home *** CD-ROM | disk | FTP | other *** search
/ Gekkan Dennou Club 147 / Gekkan Dennou Club - 2000.8 Vol. 147 (Japan).7z / Gekkan Dennou Club - 2000.8 Vol. 147 (Japan) (Track 1).bin / tools / zmc3v078 / zmc3v078.lzh / SRCSV078.LZH / CONFIG.H < prev    next >
Text File  |  1998-12-27  |  3KB  |  100 lines

  1. /* ==================================================================
  2.                     machine enviroments setting
  3.      NOTICE: If you want to compile in another OS written Makefile,
  4.               please rewrite this file, and rewrite "etc.c"
  5.                carefully with byte-order.
  6.               (fortunately for UNIX, byte-order will be recognized
  7.                automatically and it's unnecessary.)
  8.    ================================================================== */
  9.  
  10.  
  11. #ifndef CONFIG
  12.     #ifndef    __STDC__
  13.         #define    void
  14.         #define    const
  15.     #endif
  16.     #ifndef __GCC__
  17.         #define    inline
  18.     #endif
  19.  
  20.     #if defined (Linux_i386) || defined (Solaris_UltraSPARC) || defined (FreeBSD) || defined (SunOS41x_SPARC)
  21.         #define UNIXY_OS
  22.     #endif
  23.  
  24.  
  25.     /* set variable types as ...
  26.      *    sizeof(DWORD) = 4
  27.      *    sizeof(WORD)  = 2
  28.      *    sizeof(BYTE)  = 1
  29.      */
  30.  
  31.     #if defined (BCB)                    /* for Borland C++ Builder */
  32.         typedef signed long int        DWORD;
  33.         typedef signed short        WORD;
  34.         typedef signed char            BYTE;
  35.         typedef unsigned long int    UDWORD;
  36.         typedef unsigned short        UWORD;
  37.         typedef unsigned char        UBYTE;
  38.     #endif
  39.  
  40.     #ifdef X68000                        /* for X680x0 etc. */
  41.         #define NOUSE68LIB                /* use libc's strlwr/stricmp */
  42.         /* #define XCLIB */                /* use XC library */
  43.         typedef long int        DWORD;
  44.         typedef short            WORD;
  45.         typedef char            BYTE;
  46.         typedef unsigned int    UDWORD;
  47.         typedef unsigned short    UWORD;
  48.         typedef unsigned char    UBYTE;
  49.     #endif
  50.  
  51.     #ifdef MSDOS                        /* for MS-DOS */
  52.         /* Macro __TURBOC__ is automaticaly defined by compiler. */
  53.         #if defined (__TURBOC__)            /* for Turbo-C */
  54.             typedef signed long int        DWORD;
  55.             typedef signed short        WORD;
  56.             typedef signed char            BYTE;
  57.             typedef unsigned long int    UDWORD;
  58.             typedef unsigned short        UWORD;
  59.             typedef unsigned char        UBYTE;
  60.             #if !defined(fileno)
  61.                 #define fileno(f)        ((f)->fd)
  62.             #endif
  63.         #else                                /* for LSI-C */
  64.             typedef long int            DWORD;
  65.             typedef short                WORD;
  66.             typedef char                BYTE;
  67.             typedef unsigned long int    UDWORD;
  68.             typedef unsigned short        UWORD;
  69.             typedef unsigned char        UBYTE;
  70.         #endif
  71.     #endif    /* MSDOS */
  72.  
  73.     #ifdef TOWNS                        /* for TOWNS High-C */
  74.         typedef signed long        DWORD;
  75.         typedef signed short    WORD;
  76.         typedef signed char        BYTE;
  77.         typedef unsigned long    UDWORD;
  78.         typedef unsigned short    UWORD;
  79.         typedef unsigned char    UBYTE;
  80.         #pragma On(Pointers_compatible);
  81.     #endif    /* TOWNS */
  82.  
  83.     #ifdef UNIXY_OS                        /* for UNIX */
  84.         typedef    long            DWORD;
  85.         typedef    short            WORD;
  86.         typedef    char            BYTE;
  87.         typedef    unsigned long    UDWORD;
  88.         typedef    unsigned short    UWORD;
  89.         typedef    unsigned char    UBYTE;
  90.  
  91.         /* ---- Comment out if you need ---- */
  92.         /* #define    memmove(_A, _B, _C)    bcopy(_B, _A, _C) */
  93.  
  94.     #endif    /* UNIXY_OS */
  95.  
  96.  
  97.  
  98.     #define CONFIG
  99. #endif    /* CONFIG */
  100.